 #define  _CRT_SECURE_NO_WARNINGS 1

#include"string.h"

using namespace Mystring;
void test()
{

	Mystring::String s("hello world");
	Mystring::String s4("aello world");
	bool ret = s4 < s;
	cout << ret;

	Mystring::String s2("66666");
	Mystring::String s3;
	s3 = s2;
	Mystring::String s1(s);
}

void test1()
{
	//resize

	String s = "hello";
	s.resize(1);

	
}

void test2()
{
	String s = "hell";
	s.push_back('o');
	cout << s<<endl;

	s.append(" bit");
	cout << s << endl;
	s += "666";
	cout << s << endl;
	s += 'a';
	cout << s << endl;
}

void test3()
{
	//find
	String s1 = "hello bit";
	cout << s1.find("aaa");
	
}

void test4()
{
	//find
	String s1 = "hello bit";
	//cout << s1.Insert(5,"linux");
	cout << s1.Erase(0,1);
}

void test5()
{
	String s1 = "hello";
	String s2(s1);
	cout << s2 << endl;
	String s3 = "66";
	s3 = s2;
	cout << s3 << endl;
}
int main()
{


	//test1();
	test5();
	/*const char* s1 = "hello";
	const char* s2 = "aaaaaa";
	bool ret = strcmp(s1, s2);
	cout << ret;*/
	return 0;
}